function AjaxRequsest(url, data, type, flag, flag1) {

    $.ajax({
        url: url,
        type: type,
        data: data,
        success: res => {
            if (res.code == 0) {
                if(flag != 1)
                    location.reload();
                else if(flag1 != 1)
                    layer.alert(res.message);
            } else
                layer.alert(res.message);
        }
    });
}
